<?php // content="text/plain; charset=utf-8"
// $Id: groupbarex1.php,v 1.2 2002/07/11 23:27:28 aditus Exp $
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_bar.php');

$datay1=array(35,160,6,8,0,0,45,56,78,23,54,67);
$datay2=array(35,190,190,190,190,190,45,67,98,90,11,53);


$graph = new Graph(450,200,'auto');
$graph->SetScale("textlin");
$graph->SetShadow();
$graph->img->SetMargin(40,30,40,40);
$graph->title->Set('Reservationmeeting room');
$graph->subtitle->Set('barchart(month)');
$graph->title->SetFont(FF_FONT1,FS_BOLD);

$graph->xaxis->SetTickLabels($gDateLocale->GetShortMonth());
$graph->xaxis->title->Set('month');
$graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);

$graph->yaxis->title->Set('reservation');
$graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);

$bplot1 = new BarPlot($datay1);
$bplot2 = new BarPlot($datay2);

$bplot1->SetFillColor("orange");
$bplot2->SetFillColor("brown");


$bplot1->SetShadow();
$bplot2->SetShadow();

$bplot1->SetShadow();
$bplot2->SetShadow();

$bplot1->SetLegend("1204");
$bplot2->SetLegend("1205");


$gbarplot = new GroupBarPlot(array($bplot1,$bplot2,));
$gbarplot->SetWidth(0.6);
$graph->Add($gbarplot);

$graph->Stroke();
?>
